-- GENERATED SPELL FOR [Boulder'mok Chieftain] --


function spell0_21048(pUnit, Event) --@Furious Rage,Self--
pUnit:FullCastSpellOnTarget(35491,pUnit)
pUnit:RegisterEvent('Sorts_21048', 6297, 1)
end

function spell1_21048(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_21048', 10346, 1)
end

function Sorts_21048(pUnit, Event)
local choix_sorts_21048 = math.random(0, 1)
if choix_sorts_21048 == 0 then
pUnit:RegisterEvent('spell0_21048', 1, 1)
end
if choix_sorts_21048 == 1 then
pUnit:RegisterEvent('spell1_21048', 1, 1)
end
end

function mob21048_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21048', math.random(1500, 3000), 1)
end

function mob21048_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21048_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21048_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21048, 1, 'mob21048_Action')
RegisterUnitEvent(21048, 2, 'mob21048_Leave')
RegisterUnitEvent(21048, 3, 'mob21048_Kill')
RegisterUnitEvent(21048, 4, 'mob21048_Die')
